package com.syaccp.mapper;

import com.syaccp.model.TOrderDetail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.syaccp.page.pageUtils;
import com.syaccp.request.TOrderMaterialRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author DX
* @description 针对表【t_order_detail】的数据库操作Mapper
* @createDate 2023-07-25 09:12:24
* @Entity com.syaccp.model.TOrderDetail
*/
@Mapper
public interface TOrderDetailMapper extends BaseMapper<TOrderDetail> {
    /**
     * 查询总条数
     * @param orderMaterialRequest
     * @return
     */
    int queryInfoByConditionsNumber(@Param("orderRes") TOrderMaterialRequest orderMaterialRequest);

    /**
     * 根据多条件查询任务
     *
     * @return
     */
    List<TOrderDetail> queryInfoByConditions(@Param("orderRes") TOrderMaterialRequest orderMaterialRequest,@Param("page") pageUtils page);
}




